#include"process.h"
int main()
{
    //int mkfifo(const char *pathname, mode_t mode);
    int ret=Mkfifo("./myfifo",0777);
    int fd=Open("./myfifo",O_RDWR);
    char buf[512];
    int i=1;
    while(1)
    {
        memset(buf,0,sizeof(buf));
        sprintf(buf,"%d:%s",i,"hello world");
        write(fd,buf,strlen(buf));
        i++;
        sleep(1);
    }
    close(fd);
    return 0;
}